* {
    /* 初始化 取消页面的内外边距 */
    padding: 0;
    margin: 0;
    /* 修改盒模型 */
    box-sizing: border-box;
}

.loading {
    /* 固定定位 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 弹性布局 让页面元素水平+垂直居中 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 设置每个点的间隔 */
    gap: 10px;
    /* 使进度条置于最顶层 */
    z-index: 999;
}

.dot {
    width: 10px;
    height: 10px;
    background: #8a2ce2;
    border-radius: 50%;
    /* 使用弹跳动画 */
    animation: bounce 1.5s infinite ease-in-out;
}

/* 定义创建弹跳效果的动画 */
@keyframes bounce {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.6;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 延时每个点的弹跳顺序 */
.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.dot:nth-child(4) {
    animation-delay: 0.6s;
}

.dot:nth-child(5) {
    animation-delay: 0.8s;
}

.dot:nth-child(6) {
    animation-delay: 1s;
}